package base;

/**
 * @Author: DRevelation
 * @Date: 2021/3/31 16:57
 */
public enum PinTypeEnum {
    /**
     * 注册使用
     */
    REGISTER(100000, "注册使用"),
    /**
     * 忘记密码使用
     */
    FORGET_PASSWORD(100001, "忘记密码使用"),
    /**
     * 更新手机号码使用
     */
    UPDATE_PHONE_NUMBER(100002, "更新手机号码使用");

    private int code;
    private String msg;

    PinTypeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "PinTypeEnum{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }
}
